package com.zryc.service.remote;

import com.zryc.shop.entity.CustomerAddr;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("shop-user")
public interface ICustomerAddrService {
    @GetMapping("/Addr/ids")
    public List<Integer> getids(@RequestParam String name,@RequestParam String phone);
    @GetMapping("/Addr/{addrId}")
    public CustomerAddr detail(@ApiParam(required = true,value = "地址ID") @PathVariable Integer addrId);

    }